package FacadePattern;

public class ZhangWuJi {

    private ZhaoShi zhaoShi;
    private NeiGong neiGong;
    private JingMai jingMai;

    public ZhangWuJi() {
        this.zhaoShi = new ZhaoShi();
        this.jingMai = new JingMai();
        this.neiGong = new NeiGong();
    }

    /**
     * 使用乾坤大挪移
     */
    public void qianKunDaNuoYi() {
        System.out.println(this.getClass().getSimpleName() + " use qian Kun Da Nuo Yi ...");
        this.jingMai.jingMai();
        this.neiGong.qianKunDaNuoYi();
        System.out.println();
    }

    /**
     * 使用乾坤大挪移
     */
    public void qiShangQuan() {
        System.out.println(this.getClass().getSimpleName() + " use qi Shang Quan ...");
        this.jingMai.jingMai();
        this.neiGong.jiuYangShenGong();
        this.zhaoShi.qiShangQuan();
        System.out.println();
    }
}
